package com.nova.bluetooth.base;

import com.dido.fastblelib.data.BleDevice;

/**
 * 设备相关-事件通信
 */
public class DeviceMessageWrap {
    public static final int ACTION_DEVICE_CONNECTED = 0x01; // 设备连接成功
    public static final int ACTION_DEVICE_DISCONNECTED = 0x02; // 设备断开连接
    private int eventCode;
    private String eventMessage;

    private BleDevice bleDevice;

    public int getEventCode() {
        return eventCode;
    }

    public void setEventCode(int eventCode) {
        this.eventCode = eventCode;
    }

    public String getEventMessage() {
        return eventMessage;
    }

    public void setEventMessage(String eventMessage) {
        this.eventMessage = eventMessage;
    }

    public BleDevice getBleDevice() {
        return bleDevice;
    }

    public void setBleDevice(BleDevice bleDevice) {
        this.bleDevice = bleDevice;
    }

    public DeviceMessageWrap(int eventCode, String eventMessage) {
        this.eventCode = eventCode;
        this.eventMessage = eventMessage;
    }
    public DeviceMessageWrap(int eventCode, BleDevice bleDevice) {
        this.eventCode = eventCode;
        this.bleDevice = bleDevice;
    }
}
